/* 基础样式 */
:root {
    --primary-color: #126bae;
    --secondary-color: #2ecc71;
    --text-color: #333;
    --text-light: #777;
    --bg-color: #fff;
    --bg-secondary: #f8f9fa;
    --border-color: #eaeaea;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 暗色主题变量 */
[data-theme="dark"] {
    --primary-color: #4a9fe0;
    --secondary-color: #27ae60;
    --text-color: #f0f0f0;
    --text-light: #b0b0b0;
    --bg-color: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --border-color: #444;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* 基础布局 */
body {
    font-family: 'ui-sans-serif', system-ui, -apple-system, BlinkMacSystemFont, 
                 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-login {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-register {
    background-color: var(--primary-color);
    color: white;
}

.btn-register:hover {
    opacity: 0.9;
}

.user-avatar img {
    border-radius: 50%;
}

/* 英雄区域 */
.hero-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(18, 107, 174, 0.1) 0%, rgba(46, 204, 113, 0.1) 100%);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.description {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 特色服务 */
.features-section {
    padding: 60px 0;
    background-color: var(--bg-secondary);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
}

/* 最新动态 */
.news-section {
    padding: 60px 0;
}

.news-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.news-list {
    max-width: 800px;
    margin: 0 auto 30px;
}

.news-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-item time {
    color: var(--text-light);
    font-size: 0.9rem;
}

.news-item h3 {
    margin: 5px 0 10px;
    font-size: 1.2rem;
}

.news-item h3 a {
    color: var(--text-color);
    text-decoration: none;
}

.news-item h3 a:hover {
    color: var(--primary-color);
}

.news-item p {
    color: var(--text-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    display: block;
    margin: 0 auto;
    max-width: 200px;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 页脚 */
.site-footer {
    background-color: var(--bg-secondary);
    padding: 60px 0 20px;
    color: var(--text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.contact-info li {
    margin-bottom: 15px;
}

.subscribe-form {
    display: flex;
    margin-bottom: 15px;
}

.subscribe-form input {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.subscribe-form button {
    border-radius: 0 4px 4px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        box-shadow: var(--shadow);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s;
    }
    
    .main-nav.active {
        transform: translateY(0);
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
    }
    
    .mobile-menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--text-color);
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
}

/* 光标样式 */
body {
    cursor: url('staticResource/img/pointer.cur'), auto;
}

a, button {
    cursor: url('staticResource/img/link.cur'), pointer;
}